﻿using System.Collections.Generic;
using System.Threading.Tasks;

namespace Sidvall.IdentityManager.UI
{
	public static class ViewModelManager
	{
		#region LoadCacheAsync

		public static async Task LoadCacheAsync(bool refresh)
		{
			await LoadCacheAsync(refresh, null, null);
		}
		public static async Task LoadCacheAsync(bool refresh, ICollection<Task> tasks)
		{
			await LoadCacheAsync(refresh, tasks, null);
		}
		public static async Task LoadCacheAsync(bool refresh, ICollection<Task> tasks, global::Sidvall.IdentityManager.UI.Entities.Model.EntityCache entityCache)
		{
			if (tasks == null)
				tasks = new List<Task>();
			await System.Threading.Tasks.Task.WhenAll(tasks);

			if (entityCache != null)
			{
			}
		}

		#endregion
	}
}
